
Page({
  data: {
    currentIndex: 0,
    listArr: []
  },
  swiperChange: function (e) {
    this.setData({
      currentIndex: e.detail.current
    });
  },
  onLoad: function () {
    wx.request({
      url:'http://iwenwiki.com:3002/api/indexlist', 
      success: (res) => {
        console.log('列表数据', res.data);
        this.setData({
          listArr: res.data.data
        })
      }
    })
  }
})